import { Router, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgZorroAntdModule } from 'ng-zorro-antd';

//component
import { SellComponent } from './sell.component';
import { CreateComponent } from './create/create.component';
import { DealerListComponent } from './dealer-list/dealer-list.component';
import { CustomerListComponent } from './customer-list/customer-list.component';
//services
import { DealerService } from './services/dealer';
import { CustomerService } from './services/customer';
//route
import { SellRoutes } from './sell.routing.module';
import { SelectComponent } from './shared/select/select.component';

@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    ReactiveFormsModule,
    FormsModule,
    RouterModule.forChild(SellRoutes)
  ],
  entryComponents:[SelectComponent],
  providers: [CustomerService, DealerService],
  declarations: [SellComponent, CreateComponent, DealerListComponent, CustomerListComponent, SelectComponent]
})
export class SellModule { }
